#ifndef UIMAINWINDOW_H
#define UIMAINWINDOW_H

#include <QMainWindow>
#include <login_window.h>
#include <QDebug>
#include <QColorDialog>
#include <QDialog>
#include <QFont>
#include <QInputDialog>
#include <QString>
#include <QFile>
#include <QMessageBox>
#include <QFileDialog>
#include <QMessageBox>
#include <QErrorMessage>
#include <QInputDialog>
#include <QProgressDialog>
#include <QWizard>
#include <QLabel>
#include "netset.h"
#include "formwindow.h"
#include "serialwindow.h"
#include <QPushButton>
#include  <QSqlQuery>
namespace Ui {
class UIMainWindow;
}

class UIMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit UIMainWindow(QWidget *parent = 0);
    void Init_UIMainWindow();
    ~UIMainWindow();

private slots:
    void removeRow();
    void handlerPerson(QString name, int age, QString gender);

    void on_loginAction_triggered();

    void on_colorAct_triggered();

    void on_modalAct_triggered();

    void on_modelessAct_triggered();

    void on_fontAction_triggered();

    void on_openAction_triggered();

    void on_msgAction_triggered();

    void on_errorAction_triggered();

    void on_inputAction_triggered();

    void on_winzardAction_triggered();

    void on_progressAction_triggered();

    void on_saveAction_triggered();

    void on_textReadAction_triggered();

    void on_textWriteAction_triggered();

    void on_dataWirteaction_triggered();

    void on_dataReadaction_triggered();

    void on_netAction_triggered();

    void on_luruAction_triggered();

    void on_comboBox_currentIndexChanged(const QString &arg1);

    void on_serialportAction_triggered();

    void on_removeAction_triggered();

    void on_dbAddAction_triggered();

    void on_removeAction_2_triggered();

    void on_sqlQueryAction_triggered();

    //void on_updateAction_triggered();

private:
    Ui::UIMainWindow *ui;
    login_window * loginw;
    Netset       * my_netset;
    serialwindow * my_serial;
};

#endif // UIMAINWINDOW_H
